package com.sflx.shortmessage;

import com.sflx.shortmessage.util.SnowFlake;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;

/**
 * @author zengqingfa
 * @className ShortMessageApp
 * @description
 * @create 2022/9/25 15:12
 */
@SpringBootApplication
public class ShortMessageApp {

    public static void main(String[] args) {
        SpringApplication.run(ShortMessageApp.class, args);
    }

    @Bean
    public SnowFlake snowFlake() {
        return new SnowFlake(1, 1);
    }
}